package com.baijiayun.live.ui.toolbox.redpacket.widget;

import java.util.Objects;

public class MoveModel {

    public int moveId;
    public float x;
    public float y;
    public float initY;
    //红包打开时的y轴值
    public float openedY;
    public boolean isOpen;
    public long openTime = 0;
    public long createTime = 0;
    //红包可见的时间戳
    public long firstShowTime = 0;
    public int rotationAngle;
    public int scoreAmount;
    public boolean isRob;
    //是否已展现金币动画
    public boolean hasShowCoinAnim;

    public MoveModel copy(){
        MoveModel copy =  new MoveModel();
        copy.x = this.x;
        copy.y = this.y;
        copy.scoreAmount = this.scoreAmount;
        copy.moveId = this.moveId;
        copy.isRob = this.isRob;
        return copy;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        MoveModel moveModel = (MoveModel) o;
        return moveId == moveModel.moveId;
    }

    @Override
    public int hashCode() {
        return Objects.hash(moveId);
    }
}
